package buytogether.model;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

@ManagedBean
@RequestScoped
public class SaleBean implements Serializable {
    
    private final SaleBean.Sale[] salesList = new SaleBean.Sale[] {
        new SaleBean.Sale("פוקס","הלבשה"),
        new SaleBean.Sale("באג","מחשבים")
    };
 
    public SaleBean.Sale[] getSales() {
	return salesList;
    }

    public class Sale{
        private String store;
        private String category;
    
        public  Sale(String store, String category)
        {
            this.store = store;
            this.category = category;
        }

        public String getStore() {
            return store;
        }

        public void setStore(String store) {
            this.store = store;
        }

        public String getCategory() {
            return category;
        }

        public void setCategory(String category) {
            this.category = category;
        }
    }
}
